import React, {FC} from 'react';
import { Affix } from 'choerodon-ui';
import { Button } from 'choerodon-ui/pro';

const AffixBasic: FC = () => {
  return (
    <div style={{height: 100}}>
      <Affix offsetTop={100}>
        <Button>Affix Basic</Button>
      </Affix>
      <div style={{height: 1500}}>
        <p>示例--撑开页面</p>
        <br />
        <p style={{marginTop: 300}}>
          示例--撑开页面
        </p>
      </div>
    </div>
  );
};


export default AffixBasic;